package com.pig4cloud.pig.module.api.entity.titleMenu;

import com.baomidou.mybatisplus.annotation.*;
import com.pig4cloud.pig.module.api.entity.AdBanner;
import com.pig4cloud.pig.module.api.entity.Coupons;
import com.pig4cloud.pig.module.api.entity.product.Product;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.apache.ibatis.type.JdbcType;

import java.io.Serializable;

/**
 * 每个内容行里的数据对象 title_menu_section_links
 *
 * @author ruoyi
 * @date 2021-08-11
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("title_menu_section_links")
public class TitleMenuSectionLinks implements Serializable {

    private static final long serialVersionUID=1L;


    /**
     * $column.columnComment
     */
    @TableId(value = "id")
    private Integer id;

    /**
     * $column.columnComment
     */
    private Integer sectionId;

    /**
     * $column.columnComment
     */
	@TableField(updateStrategy = FieldStrategy.IGNORED,jdbcType = JdbcType.VARCHAR)
    private String imgUrl;

	/**
	 *  icon 图标地址
	 */
	@TableField(updateStrategy = FieldStrategy.IGNORED,jdbcType = JdbcType.VARCHAR)
	private String iconUrl;

    /**
     * $column.columnComment
     */
    private Integer viewHeight;

    /**
     * $column.columnComment
     */
    private Integer viewWidth;

    /**
     * 链接的类型   product - 单商品 - page 商品页（title_menu_id）  group - 团购商品  coupon - 优惠券  image - 单图片 不跳转
     */
    private String linkType;

    /**
     * 链接的id
     */
    private Integer linkId;

    /**
     *  是否是切换菜单
     */
    private Integer isSwitchTab;

    /**
     * 链接地址
     */
	@TableField(updateStrategy = FieldStrategy.IGNORED,jdbcType = JdbcType.VARCHAR)
    private String linkUrl;

    /**
     * 遮罩的类型  0 - 正常无遮罩  1 - 已抢光
     */
    private Integer maskType;

    /**
     * $column.columnComment
     */
    private Integer sort;

    /**
     * $column.columnComment
     */
    private Integer state;

    /**
     * 包邮、拼团、秒杀的icon图片
     */
	@TableField(updateStrategy = FieldStrategy.IGNORED,jdbcType = JdbcType.VARCHAR)
    private String maskImg;

    /**
     * lable文本  以逗号 , 分隔
     */
	@TableField(updateStrategy = FieldStrategy.IGNORED,jdbcType = JdbcType.VARCHAR)
    private String labelText;

	/**
	 *  显示文字
	 */
	@TableField(updateStrategy = FieldStrategy.IGNORED,jdbcType = JdbcType.VARCHAR)
	private String btnText;
	/**
	 *  显示文字 样式
	 */
	@TableField(updateStrategy = FieldStrategy.IGNORED,jdbcType = JdbcType.VARCHAR)
	private String btnTextCss;


    @TableField(exist = false)
    private String imgUrlPath;


	@TableField(exist = false)
    private String iconUrlPath;

    @TableField(exist = false)
    private String linkTypeName;

    @TableField(exist = false)
    private Product product;

	@TableField(exist = false)
	private Coupons coupons;

    @TableField(exist = false)
    private AdBanner banner;
}
